Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

document how to run tests without venv nor hatch #33

Closed
wants to merge 1 commit into from

Conversation

josch
Copy link

@josch josch commented Jul 17, 2024

It is possible to run bmaptool and the testsuite without venv, without hatch, without pip and without building and installing anything into venv by just running this:

PATH=tests/bin:$PATH PYTHONPATH=src python3 -m unittest -bv

This assumes that a tool called bmaptool is in $PATH and essentially runs python3 -m src.bmaptool.

I find this way of running the tests quite a bit easier than going through all the venv, building and installation steps.

@JPEWdev
Copy link
Collaborator

JPEWdev commented Jan 13, 2025

Except that when you do this, you aren't testing the verison of bmaptool in this code repo, which IMHO is more confusing than it's worth. I'm fine if that's how you want to test it, but as general instruction it's not a good idea.

@josch
Copy link
Author

josch commented Jan 13, 2025

Then lets close this! 😉

@josch josch closed this Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants